package com.css.fxfzypg.modules.surveytaskmanage.repository;

import com.css.fxfzypg.modules.surveytaskmanage.entity.FieldSurveyTaskEntity;
import com.css.fxfzypg.modules.surveytaskmanage.vo.FieldSurveyVo;
import com.css.fxfzypg.modules.surveytaskmanage.vo.TaskVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;


public interface FieldSurveyTaskRepository {



    void saveTask(FieldSurveyTaskEntity fieldSurveyTaskEntity);

    Map<String,Object> findParentIdByTask(String parentId, TaskVo taskVo,int curPage, int pageSize);

    List<FieldSurveyTaskEntity> getSubTask(String parentTaskId);

    FieldSurveyTaskEntity findById(String taskId);

    void updateTask(FieldSurveyTaskEntity fieldSurveyTaskEntity);

    void completeTask(String taskStatus, String id);

    void assignGroup(FieldSurveyTaskEntity fieldSurveyTaskEntity);

    void deleteTask(String delFlag, String id);

    void deleteFieldSurvey(String delFlag, String taskNum);

    Map<String, Object> getAppPage(HttpServletRequest request, TaskVo taskVo, int curPage, int pageSize, List<String> grouoIds);

    FieldSurveyTaskEntity getParentTask(String parentTaskNum);

    String getMaxSubTaskCNum(String parentTaskNum);

    List<FieldSurveyVo> findSubIdByTask(String id, TaskVo taskVo);
}
